<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> 
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>员工管理查询页面</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		
		<script language="javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
  		<script type="text/javascript" src="js/skygq.checkform.1.2.js"></script>
  		<link rel="stylesheet" href="style/common.css" type="text/css" />
 		<link rel="stylesheet" href="style/valid.css" type="text/css" />
 		<link rel="stylesheet" type="text/css" href="style/styles.css">
		<link rel="stylesheet" type="text/css" href="style/button.css">
		<link rel="stylesheet" type="text/css" href="style/icon.css">
		<script language="javascript" src="js/pico-button.js"></script>
		<script language="javascript" src="js/style.js"></script>
		<script language="javascript" src="pages/employeeManage/js/employee.js"></script>
	</head>
	<body>
		<s:form id="employeeForm" name="employeeForm" namespace="/pages" action="employeeAction!employeeQuery.action" method="post">
			<pg:pager url="./pages/employeeAction!employeeQuery.action" maxIndexPages="${application.pager.pageNum}"
				maxPageItems="${application.pager.pageSize}" items="${count}" isOffset="true"
				export="offset,currentPageNumber=pageNumber">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td height="30" background="images/tab_05.gif">

							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="12" height="30">
										<img src="images/tab_03.gif" width="12" height="30" />
									</td>
									<td>
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="30%" valign="middle">
													<table width="100%" border="0" cellspacing="0"
														cellpadding="0">
														<tr>
															<td width="5%">
																<div align="center">
																	<img src="images/tb.gif" width="16" height="16" />
																</div>
															</td>
															<td width="95%" class="STYLE1">
																<span class="STYLE3">您当前的位置</span>：【员工管理】-【查询页面】
															</td>
														</tr>
													</table>
												</td>
												<td width="54%">
													<table border="0" align="right" cellpadding="0"
														cellspacing="0">
														<tr>
															<td width="110">
																<table width="87%" border="0" cellpadding="0"
																	cellspacing="0">
																	<tr>
																		<td class="STYLE1">
																			<div align="center">
																				
																			</div>
																		</td>
																		<td class="STYLE1">
																			<div align="center">
																				
																			</div>
																		</td>
																		<td class="STYLE1">
																			<div align="center">
																				
																			</div>
																		</td>
																	</tr>
																</table>
															</td>
															<td>
																<table width="90%" border="0" cellpadding="0"
																	cellspacing="0">
																	<tr>
																		<td class="STYLE1">
																			<input icon="icon-add-row" type="button" value="添加员工" onclick="javascript:toAddPage();">
																		</td>
																	</tr>
																</table>
															</td>

															<td>
																<table width="90%" border="0" cellpadding="0"
																	cellspacing="0">
																	<tr>
																		<td class="STYLE1">
																				
																		</td>
																		<td class="STYLE1">

																		</td>
																	</tr>
																</table>
															</td>

														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
									<td width="16">
										<img src="images/tab_07.gif" width="16" height="30" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
					
					<tr>
						<td height="30" background="images/tab_05.gif">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="8" height="30" background="images/tab_12.gif">
										
									</td>
									<td>
										<table width="80%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="100%" valign="middle">
													<table width="100%" border="0" cellspacing="0"
														cellpadding="0">
														<tr>
															<td class="STYLE1">
																员工姓名:<s:textfield id="realName" name="employee.realName"></s:textfield>
															</td>
															
															<td class="STYLE1">
																<input icon='icon-search-row' type='submit' value="快速查询">
																<input icon='icon-retry' type="button" value="重置" onclick="cleanData();">
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
									<td width="8" background="images/tab_12.gif">
										
									</td>
								</tr>
							</table>
						</td>
					</tr>
					
					
					<tr>
						<td>
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="8" background="images/tab_12.gif">
										&nbsp;
									</td>
									<td>
										<table width="100%" border="0" cellpadding="0" cellspacing="1"
											bgcolor="b5d6e6" onmouseover="changeto()"
											onmouseout="changeback()">
											<tr>
												<td width="3%" height="22" background="images/bg2.gif"
													bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE3">序号</span>
													</div>
												</td>
												<td width="" height="22" background="images/bg2.gif"
													bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE3">员工名称</span>
													</div>
												</td>
												<td width="" height="22" background="images/bg2.gif"
													bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE3">员工密码</span>
													</div>
												</td>
												<td width="" height="22" background="images/bg2.gif"
													bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE3">真实姓名</span>
													</div>
												</td>
												<td width="" height="22" background="images/bg2.gif"
													bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE3">所属部门</span>
													</div>
												</td>
												<td width="" height="22" background="images/bg2.gif"
													bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE3">所属矿区</span>
													</div>
												</td>
												<td width="" height="22" background="images/bg2.gif"
													bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE3">所属公司</span>
													</div>
												</td>
												<td width="" height="22" background="images/bg2.gif"
													bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE3">所属集团</span>
													</div>
												</td>
												
												<td width="15%" height="22" background="images/bg2.gif" bgcolor="#FFFFFF" colspan="3">
													<div align="center">
														<span class="STYLE3">操作</span>
													</div>
												</td>
											</tr>
												<s:iterator value="employeeList" var="employee" status="s">
													<pg:item>
														<tr>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center" class="STYLE1">
																	<div align="center">
																		${offset+s.count}
																	</div>
																</div>
															</td>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1">${userName}</span>
																</div>
															</td>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1">${password}</span>
																</div>
															</td>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1">${realName}</span>
																</div>
															</td>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1">${departmentName}</span>
																</div>
															</td>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1">${collieryName}</span>
																</div>
															</td>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1">${companyName}</span>
																</div>
															</td>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1">${groupName}</span>
																</div>
															</td>
															
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1"><img src="images/sehch.png" width="15" height="15" align="absmiddle" /><a href="javascript:queryDetail('${id}')">查看</a></span>
																</div>
															</td>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1"><img src="images/edt.gif" width="15" height="15" align="absmiddle" /><a href="javascript:toEditPage('${id}')">修改</a></span>
																</div>
															</td>
															<td height="20" bgcolor="#FFFFFF">
																<div align="center">
																	<span class="STYLE1"><img src="images/del.gif" width="15" height="15" align="absmiddle" /><a href="javascript:doDel('${id}');">删除</a></span>
																</div>
															</td>
															
														</tr>
													</pg:item>
												</s:iterator>
										</table>
									</td>
									<td width="8" background="images/tab_15.gif">
										&nbsp;
									</td>
								</tr>
							</table>
						</td>
					</tr>

					<tr>
						<td height="35" background="images/tab_19.gif">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="12" height="35">
										<img src="images/tab_18.gif" width="12" height="35" />
									</td>
									<td class="STYLE4" align="center">
										<pg:index>
											<pg:first>
												<a href="<%=pageUrl%>">首页</a>
											</pg:first>
											<pg:prev>
												<a href="<%=pageUrl%>">上一页</a>
											</pg:prev>
											<pg:pages>
												<a href="<%=pageUrl%>"><%=pageNumber%></a>
											</pg:pages>
											<pg:next>
												<a href="<%=pageUrl%>">下一页</a>
											</pg:next>
											<pg:last>
												<a href="<%=pageUrl%>">末页</a>
											</pg:last>
										</pg:index>
										<span style="margin-left: 20%"> <font
											style="font-size: 12">当前页：<span style="color: #930000"><%=currentPageNumber%></span>/<pg:last><%=pageNumber%></pg:last>
										</font>&nbsp;&nbsp; <font style="font-size: 12">共<span
												style="color: #930000">${count}</span> 条记录</font> </span>
									</td>
									<td width="16">
										<img src="images/tab_20.gif" width="16" height="35" />
									</td>
								</tr>
							</table>

						</td>
					</tr>
				</table>
			</pg:pager>
		</s:form>
	</body>
</html>
